<template>
  <div class="home-page">
    <div class="hero-section">
      <div class="container">
        <h1 class="title">AI 辅助开发系统</h1>
        <div class="subtitle">
          <p>本系统采用 AI 辅助开发，实现从代码编写到异常处理的全流程智能化</p>
        </div>
        <div class="features">
          <div class="feature-item">
            <i class="fas fa-code"></i>
            <h3>AI 代码实现</h3>
            <p>根据人类的设计思路和方案，由 AI 高效完成代码编写</p>
          </div>
          <div class="feature-item">
            <i class="fas fa-shield-alt"></i>
            <h3>智能异常处理</h3>
            <p>系统运行中的异常由 AI 实时监控和诊断</p>
          </div>
          <div class="feature-item">
            <i class="fas fa-sync"></i>
            <h3>持续优化</h3>
            <p>基于人类的反馈，AI 不断优化和改进代码质量</p>
          </div>
        </div>
        <div class="declaration">
          <h2>系统说明</h2>
          <p>这是一个人机协作的智能开发项目：</p>
          <ul>
            <li>系统架构和功能规划由人类设计</li>
            <li>具体代码实现由 AI 完成</li>
            <li>系统异常监控和处理由 AI 负责</li>
            <li>代码优化和重构由 AI 执行</li>
            <li>最终方案由人类确认和审核</li>
          </ul>
          <p class="highlight">人机协作，智能开发，让创意更高效地实现</p>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.home-page {
  .hero-section {
    padding: 80px 0;
    background: white;
    color: #333;
    text-align: center;

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .title {
      font-size: 2.8rem;
      margin-bottom: 20px;
      font-weight: 600;
      color: #2c3e50;
    }

    .subtitle {
      font-size: 1.2rem;
      margin-bottom: 60px;
      color: #666;
    }

    .features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 40px;
      margin-bottom: 80px;

      .feature-item {
        padding: 30px;
        background: #f8f9fa;
        border-radius: 12px;
        transition: transform 0.3s ease;
        border: 1px solid #eee;

        &:hover {
          transform: translateY(-5px);
          box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }

        i {
          font-size: 2.5rem;
          margin-bottom: 20px;
          color: #2c3e50;
        }

        h3 {
          font-size: 1.4rem;
          margin-bottom: 15px;
          color: #2c3e50;
        }

        p {
          color: #666;
          line-height: 1.6;
        }
      }
    }

    .declaration {
      background: #f8f9fa;
      padding: 40px;
      border-radius: 12px;
      text-align: left;
      border: 1px solid #eee;

      h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        text-align: center;
        color: #2c3e50;
      }

      ul {
        list-style: none;
        padding: 0;
        margin: 20px 0;

        li {
          margin: 10px 0;
          padding-left: 25px;
          position: relative;
          color: #666;

          &::before {
            content: "•";
            position: absolute;
            left: 0;
            color: #2c3e50;
            font-weight: bold;
          }
        }
      }

      .highlight {
        text-align: center;
        font-size: 1.2rem;
        font-weight: 500;
        margin-top: 30px;
        padding: 15px;
        background: #f1f4f6;
        border-radius: 8px;
        color: #2c3e50;
      }
    }
  }
}

@media (max-width: 768px) {
  .home-page {
    .hero-section {
      padding: 40px 0;

      .title {
        font-size: 2rem;
      }

      .features {
        gap: 20px;
      }

      .declaration {
        padding: 20px;
      }
    }
  }
}
</style>